We have several modules that don't use the Main column. We want to see the Change Bars, but they only show on the main column.
llandale - Thu Feb 04 11:23:26 EST 2010 |
Re: DXL Challenge: Layout displays Change Bars |
Re: DXL Challenge: Layout displays Change Bars jsarkic - Thu Feb 04 13:28:42 EST 2010 |
Re: DXL Challenge: Layout displays Change Bars jsarkic - Thu Feb 04 13:28:42 EST 2010 This worked: Column cCurr = column(getSelectedCol(current Module)) Column cNew = insert(cCurr) main(cNew) width(cNew, 6) // Best width seems to be '6', I guess Pixels
|
Re: DXL Challenge: Layout displays Change Bars llandale - Thu Feb 04 16:34:58 EST 2010 This worked: Column cCurr = column(getSelectedCol(current Module)) Column cNew = insert(cCurr) main(cNew) width(cNew, 6) // Best width seems to be '6', I guess Pixels
|
Re: DXL Challenge: Layout displays Change Bars kbmurphy - Thu Feb 04 18:06:46 EST 2010 bool modified (Object) will return true if the object was modified since the last baseline for a section you can use since DOORS 8.3 you can use the bool saved (Object) and bool unsaved (Object) to check if the object has unsaved changes. This way you should be able to show the change bars. Regards, Mathias |
Re: DXL Challenge: Layout displays Change Bars Mathias Mamsch - Fri Feb 05 04:15:22 EST 2010 {code DBE can = getCanvas() if (unsaved obj) realBackground(can, realColor_Red) else if (modified obj) realBackground(can, realColor_Yellow) else realBackground(can, realColor_Green) } |
Re: DXL Challenge: Layout displays Change Bars jsarkic - Fri Feb 05 08:15:32 EST 2010 |
Re: DXL Challenge: Layout displays Change Bars jsarkic - Fri Feb 05 08:15:32 EST 2010
Bingo!! Thanks
string DXL_Code = "
DBE can = getCanvas()
if (unsaved obj)
realBackground(can, realColor_Red)
elseif (modified obj)
realBackground(can, realColor_Yellow)
else realBackground(can, realColor_Blue)
"
Column cCurr = column(getSelectedCol(current Module))
Column cNew = insert(cCurr)
dxl(cNew, DXL_Code)
width(cNew, 6) // Best width seems to be '6', I guess Pixels
|
Re: DXL Challenge: Layout displays Change Bars llandale - Sun Feb 07 02:07:32 EST 2010
Bingo!! Thanks
string DXL_Code = "
DBE can = getCanvas()
if (unsaved obj)
realBackground(can, realColor_Red)
elseif (modified obj)
realBackground(can, realColor_Yellow)
else realBackground(can, realColor_Blue)
"
Column cCurr = column(getSelectedCol(current Module))
Column cNew = insert(cCurr)
dxl(cNew, DXL_Code)
width(cNew, 6) // Best width seems to be '6', I guess Pixels
Must check for null 'can'; 'new' object, 'deleted' object, and I chose to change the color when the section is locked and needs changed (pink).
DBE can = getCanvas()
int BackColor
if (null can)
{} // cannot color canvas
else
{ elseif(unsaved(obj) or new(obj))
BackColor = realColor_Red // Modified not yet saved
elseif(isDeleted(obj))
BackColor = realColor_Black // Deleted Object
elseif(sectionNeedsSaved(obj) and isLockedByUser(obj))
BackColor = realColor_Pink // Section locked and modified
elseif (saved(obj))
BackColor = realColor_Yellow // modified since Baseline or module create
else BackColor = realColor_Blue // not modified since baseline
realBackground(can, BackColor)
}
|
Re: DXL Challenge: Layout displays Change Bars llandale - Sun Feb 07 02:07:32 EST 2010
Bingo!! Thanks
string DXL_Code = "
DBE can = getCanvas()
if (unsaved obj)
realBackground(can, realColor_Red)
elseif (modified obj)
realBackground(can, realColor_Yellow)
else realBackground(can, realColor_Blue)
"
Column cCurr = column(getSelectedCol(current Module))
Column cNew = insert(cCurr)
dxl(cNew, DXL_Code)
width(cNew, 6) // Best width seems to be '6', I guess Pixels
perhaps you can add an other case : deleted , with black color. Pierre |